<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main"><i class="glyphicon glyphicon-modal-window"></i> 设备管理</a></li>
        <li><a ui-sref="main.dm.warn.list" class="active" ng-bind="title"></a></li>
    </ul>
</div>

<!-- 加载提醒 -->
<div ng-show="loading" class="text-center m-t-md text-lg dataWarn"><i class="fa fa-spin fa-spinner"></i> 数据加载中...</div>
<!-- 内容区域 -->
<div ng-hide="loading" class="wrapper-md content">
    <!-- 数据显示 -->
    <div class="wrapper-data">
        <div class="panel panel-default">
            <!-- 头部 -->
            <div class="panel-heading clearfix">
                <div class="w-auto">
                   <form ng-submit="search()" class="form-inline">
                        <div class="form-group">
						     <label for="name">告警信息：</label> <input type="text"
								class="form-control" style="width: 180px" id="name"
								placeholder="" ng-model="param.warnInfo">
						</div>
						<div class="form-group">
							<label for="name">设备名称：</label> <input type="text"
								class="form-control" style="width: 180px" id="name"
								placeholder="" ng-model="param.deviceName">
						</div>
						<div class="form-group">
							<label for="name">房屋地址：</label> <input type="text"
								class="form-control" style="width: 180px" id="name"
								placeholder="" ng-model="param.address">
						</div>
						<div class="form-group">
							<button type="submit" class="btn btn-primary new-primary"
								style="margin-left: 10px" ng-show="read">查询</button>
						</div>
					</form>
                </div>
            </div>

            <!-- 数据表格 -->
            <div class="table-responsive">
                <table class="table table-striped b-t b-light text-center">
                    <thead>
                    <tr>
                    	<!-- <th>告警编码</th> -->
                    	<th>告警信息</th>
                    	<th>告警时间</th>
                    	<th>告警状态</th>
                    	<th>楼栋地址</th>
                    	<!-- <th>门号</th> -->
                    	<th>设备名称</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in pageInfo.data">
                        <!-- <td class="v-middle">{{item.warnId}}</td> -->
                        <td class="v-middle">{{item.warnInfo}}</td>
                        <td class="v-middle">{{item.warnTime}}</td>
                        <td class="v-middle">
                            <span ng-if="item.warnStatus==1" class="text-success">已解除</span>
	                        <span ng-if="item.warnStatus==0" class="text-danger">未解除</span>
                        </td>
                        <td class="v-middle">{{item.address}}</td>
                        <!-- <td class="v-middle">{{item.door}}</td> -->
                        <td class="v-middle">{{item.deviceName}}</td>
						<td class="v-middle">
						    <a ui-sref="main.dm.warn.details({id: item.warnId})" style="color:#fb7009" ng-show="read">
								<!--class="fa fa-edit m-r-xs text-sm"-->
								<i></i>详情
							</a>  
						</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <!-- /.table-responsive -->
            
            <!-- 底部分页 -->
			<span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.wrapper-data -->

</div>
<!-- /.wrapper-md -->
